<?php
 Session_Start () ;
 If (!$_SESSION ["repertoire_config"]) { Header ("Location: ../../") ; }
 Include ("../../include/garennes.cfg") ;
 Include ("../../include/init.php") ;
 Include ("../include/config.inc") ;
 verif_droits ($droit_courant, $_SESSION ["code"]) ;
 
 $resultats = SQL_commande ("SELECT * FROM menus WHERE numero='".$droit_courant."' AND ordre='0'", $id_sql) ;
 $l = SQL_tableau_associatif ($resultats, "") ; 
 Echo "<HTML><HEAD>" ;
 entete_html ("Garennes", "travail", 1) ;
 Echo styles ("none", "none", "none", $l ["lien"], "none") ;
 Echo "<SCRIPT> function valide() { document.forme.chemin.value=document.forme.nom_1.value } </SCRIPT>" ;
 Echo "</HEAD>" ;

 Echo "<BODY BACKGROUND=\"../images/fond.png\" TEXT=\"#000000\" onContextMenu=\"return false\">" ;
 Echo "<CENTER><FONT COLOR=\"#0000FF\">Insertion&nbsp;d'une&nbsp;base&nbsp;\"STRUCTURE\"&nbsp;provenant&nbsp;d'un&nbsp;fichier&nbsp;XML&nbsp;(2/3)</FONT></CENTER>" ;
 Echo "<FORM ACTION=\"./importation_xml_structure_3.php\" METHOD=\"POST\" NAME=\"forme\" onSubmit=\"javascript:valide()\" ENCTYPE=\"multipart/form-data\">" ;
 Echo "<TABLE BORDER=\"1\" BGCOLOR=\"".$l ["couleur_fond"]."\" CELLPADDING=\"0\" CELLSPACING=\"0\" ALIGN=\"CENTER\" STYLE=\"border:1px solid #000000;border-collapse:collapse\">" ;
 Echo "<TR><TD ALIGN=\"CENTER\" BGCOLOR=\"".$l ["lien"]."\">&nbsp;Indiquez&nbsp;o&ugrave;&nbsp;se&nbsp;trouve&nbsp;" ;
 If ($imp_xml_structure [0] > 1) { Echo "les&nbsp;fichiers&nbsp;suivants:&nbsp;" ; } Else { Echo "le&nbsp;fichier&nbsp;suivant:&nbsp;" ; }
 Echo "<TR><TD>" ;
 Echo "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"100%\" STYLE=\"border-collapse:collapse\">" ;
 For ($i = 1 ; $i <= $imp_xml_structure [0] ; $i++)
  {
   If ($imp_xml_structure [$i])
    {
     Echo "<TR><TD COLPSAN=\"2\">&nbsp;</TD></TR>" ;
     Echo "<TR>" ;
     Echo "<TD ALIGN=\"RIGHT\">&nbsp;<B>".$imp_xml_structure [$i]."</B>&nbsp;:&nbsp;</TD>" ;
     Echo "<TD><INPUT TYPE=\"FILE\" NAME=\"nom_".$i."\" SIZE=\"50\">&nbsp;</TD>" ;
     Echo "</TR>" ;
    }
  }
 Echo "<TR><TD COLPSAN=\"2\">&nbsp;</TD></TR></TABLE></TD></TR></TABLE>" ;
 Echo "<CENTER>&nbsp;<INPUT TYPE=\"SUBMIT\" NAME=\"submit\" VALUE=\" Ins&eacute;rer \"></CENTER><BR>" ;
 Echo "<INPUT TYPE=\"HIDDEN\" NAME=\"chemin\" VALUE=\"\"><INPUT TYPE=\"HIDDEN\" NAME=\"etape\" VALUE=\"3\">" ;
 Echo "</FORM></BODY></HTML>" ;
?>